package com.wwj.core.wawa.entity;

import com.wwj.framework.entity.BaseIdEntity;

import java.math.BigDecimal;
import java.util.Date;

/**
 * Created by Administrator on 2017/11/2.
 */
public class PlayerRecharge extends BaseIdEntity<Integer> {
    public static final int UNPAID = 1; //待支付
    public static final int PAY_SUCCESS = 2; //支付成功
    public static final int PAY_FAILD = 3; //支付失败
    public static final int PAY_CANCEL = 4; //支付取消

    public static final int PAY_TYPE_WX_PAY = 1;//微信支付
    public static final int PAY_TYPE_ALIPAY = 2;//支付宝支付

    public static final String PLATFORM_BBN = "bbn";//bbn支付平台
    public static final String PLATFORM_APP = "app";//app直接支付

    private int playerId;

    private BigDecimal amount;

    private int itemId;

    private Date orderTime;

    private Date payTime;

    private int orderStatus;

    private String description;

    private int changeId;

    private int payType;

    private String payPlatform;

    //本地订单号
    private String tradeNo;

    //计费支付平台的交易流水号
    private String transId;

    //计费支付平台的交易结果状态
    private int transState;

    //计费支付平台的交易结果描述
    private String transResult;

    private Player player;

    private Item item;

    public int getPlayerId() {
        return playerId;
    }

    public void setPlayerId(int playerId) {
        this.playerId = playerId;
    }

    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    public int getItemId() {
        return itemId;
    }

    public void setItemId(int itemId) {
        this.itemId = itemId;
    }

    public Date getOrderTime() {
        return orderTime;
    }

    public void setOrderTime(Date orderTime) {
        this.orderTime = orderTime;
    }

    public Date getPayTime() {
        return payTime;
    }

    public void setPayTime(Date payTime) {
        this.payTime = payTime;
    }

    public int getOrderStatus() {
        return orderStatus;
    }

    public void setOrderStatus(int orderStatus) {
        this.orderStatus = orderStatus;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public int getPayType() {
        return payType;
    }

    public void setPayType(int payType) {
        this.payType = payType;
    }

    public String getPayPlatform() {
        return payPlatform;
    }

    public void setPayPlatform(String payPlatform) {
        this.payPlatform = payPlatform;
    }

    public String getTradeNo() {
        return tradeNo;
    }

    public void setTradeNo(String tradeNo) {
        this.tradeNo = tradeNo;
    }

    public int getChangeId() {
        return changeId;
    }

    public void setChangeId(int changeId) {
        this.changeId = changeId;
    }

    public String getTransId() {
        return transId;
    }

    public void setTransId(String transId) {
        this.transId = transId;
    }

    public int getTransState() {
        return transState;
    }

    public void setTransState(int transState) {
        this.transState = transState;
    }

    public String getTransResult() {
        return transResult;
    }

    public void setTransResult(String transResult) {
        this.transResult = transResult;
    }

    public Player getPlayer() {
        return player;
    }

    public void setPlayer(Player player) {
        this.player = player;
    }

    public Item getItem() {
        return item;
    }

    public void setItem(Item item) {
        this.item = item;
    }
}
